const dbserver = require('../dao/dbSever')
//按要求获取用户列表

exports.getUsers = (req, res) => {

    let data = req.body;
    dbserver.getUsers(data, res)
}
//获取一对一消息
exports.getOneMsg = (req, res) => {

    let data = req.body;
    dbserver.getOneMsg(data, res)
}

//汇总一对一消息未读数
exports.unrearMsg = (req, res) => {

    let data = req.body;
    dbserver.unrearMsg(data, res)
}

//一对一消息状态修改
exports.updateMsg = (req, res) => {

    let data = req.body;
    dbserver.updateMsg(data, res)
}

//按要求获取群列表
exports.getGroup = (req, res) => {

    let data = req.body;
    dbserver.getGroup(data, res)
}
//获取群最后一条消息
exports.getOneMsg = (req, res) => {


    let data = req.body;
    dbserver.getOneMsg(data, res)
}
//群消息状态修改
exports.updateGroupMsg = (req, res) => {

    let data = req.body;
    dbserver.updateGroupMsg(data, res)
}
//新建群
exports.createGroup = (req, res) => {

    let data = req.body;
    dbserver.createGroup(data, res)
}